home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000249_news@newsmaster….columbia.edu _Mon Jul 6 17:21:11 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA23884
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 6 Jul 1998 17:21:10 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA10380
for kermit.misc@watsun; Mon, 6 Jul 1998 17:21:10 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: sending commands to CONNECT
Date: 6 Jul 1998 21:21:06 GMT
Organization: Columbia University
Lines: 35
Message-ID: <6nrf42$8o9$1@apakabar.cc.columbia.edu>
References: <35A1203B.165AF584@ra.rockwell.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8948
In article <35A1203B.165AF584@ra.rockwell.com>,
Petre Scheie <pmscheie@ra.rockwell.com> wrote:
: I'm using Kermit to talk to a device that monitors who goes in and out
: of the building. The device is designed to talk to a terminal, so I've
: got a Linux box connected to it. Everything works fine if I connect to
: the device with Kermit and issue commands to the device when in CONNECT
: mode. I can run some reports and the output from those scrolls across
: the screen and are sent to a session log file. But I want to use a cron
: job to run the reports. I've got the commands all in a file and they
: seem to get sent to the device, but until I CONNECT, the output from the
: deivce doesn't seem to go anywhere. If I send the command file to the
: device, then do a CONNECT, all the commands and responses appear on the
: screen, as if they are buffered somewhere. If I turn the session log on
: I can capture this to a file. But to automate this I need to be able to
: then send a Ctrl-\C to Kermit to get back to command mode. Anyone know
: how to do this? Or have any idea about why I can't redirect the output
: from the device that seems to be coming to Kermit into a file? I've
: tried some redirection to files, but nothing ever gets there. The only
: way I've been able to get the output to a file is with the LOG SESS FILE
: command, but CONNECT has to be used for that to work, and then I'm back
: to my original problem. Thanks for any help.
:
It sounds like you need the manual, "Using C-Kermit":
http://www.columbia.edu/kermit/ck60.html
Chapters 17-19 are devoted to script programming. Chapter 8 is devoted to
CONNECT mode.
When the CONNECT command is active, C-Kermit acts like a terminal. Scripts
execute when the CONNECT command is *not* active. Instead of CONNECT, use
the INPUT and OUTPUT commands to interact with the remote device. It's all
explained in the manual, with profuse examples.
- Frank